package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"travel/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	//新增
	beego.Router("/add", &controllers.TravelController{}, "post:Add")
	//列表
	beego.Router("/list", &controllers.TravelController{}, "get:List")
	//修改
	beego.Router("/update", &controllers.TravelController{}, "post:Update")
	//删除
	beego.Router("/delete", &controllers.TravelController{}, "get:Delete")

}
